#! /bin/sh

/bin/mount -a
/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 192.168.1.118 netmask 255.255.255.0
#/sbin/ifconfig eth0 hw ether 00:11:22:33:44:55
/sbin/ifconfig eth0 hw ether 00:60:08:ad:c1:61
#/sbin/getty -L ttyS0 115200 vt100
#/bin/mount /dev/pts

#export PATH=$PATH:/app/ubifs
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/app/dropbear:/app/sqlite:/app/ubifs
export PATH=$PATH:/app/dropbear:/app/sqlite:/app/ubifs

#/bin/mount -t jffs2 /dev/mtdblock5 /data
#ubiattach /dev/ubi_ctrl -m 5
#/bin/mount -t ubifs ubi0:ubidata /data
dmesg > /var/log/dmesg

#hostname F /etc/hostname
#hostname 9gsam9260-Linux
hostname zlb2440-Linux
/sbin/route add default gw 192.168.1.1

# mount fs
/bin/mount -o remount,rw / 

echo /sbin/mdev > /proc/sys/kernel/hotplug
/sbin/mdev -s

# settime
date 040712002010  > /dev/null 
hwclock -w   >  /dev/null 
# display 

#/sbin/mdev -s


#echo 'rootfs version 2.6.27-9gsam9260ek (yuanxihua@y21cn.com) (gcc version 4.0.0 (DENX ELDK 4.1 4.0.0))' > /dev/ttyS0
echo 'rootfs version 2.6.27-9gsam9260ek armv5tl-softfloat-linux-gnueabi-gcc' > /dev/ttyS0
/app/appinit.sh
